Readme file for replication of 
Class Rank and Long-Run Outcomes

Jeffrey T. Denning, Richard Murphy and Felix Weinhardt

Data Access

We accessed the data through the University of Texas at Austin Education Research Center. To gain access, interested parties must apply and receive approval from the Texas state advisory board which meets quarterly. Data can only be accessed in a secure environment and results must be inspected to insure anonymity. At the time of this writing the same data can be accessed through the University of Texas at Dallas and University of Houston Education Research Centers.

For more information see https://texaserc.utexas.edu/.

Code

The code provided here will run all the analysis in the manuscript. We have run the analysis using Stata version 15, in a Windows 10 operating system.
ReStat_0_DataProcessing.do
This file extracts the relevant variables from the required cohorts from the ERC datasets. The file then standardizes variables names and merges these together across academic years so that students can be followed. The main derived variables are then created, including various definitions of rank. Notation regarding variable definitions are including in this code. 
ReStat_1_Analysis.do
This code executes all results in the paper, and all the figures based from estimation results. The name of the relevant table or figure is noted immediately above each section of code. 
ReStat_2_Figures.do
This code produces all the figures in the paper based on data that do not come from estimation results. The name of the relevant figure is noted immediately above each section of code.
ReStat_3_School_Choice.do
This code reproduces the calculations to create Appendix Table 4, documenting the tradeoff of rank and other school features. 
